package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.VideoFolder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VideoFolderMapper {
    VideoFolder selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    int insert(VideoFolder videoFolder);
    int insertSelective(VideoFolder videoFolder);
    int updateByPrimaryKeySelective(VideoFolder videoFolder);
    int updateByPrimaryKey(VideoFolder videoFolder);
    List<VideoFolder> listVideoFolderBySuperId(@Param("superId") Integer superId);
    int updatePath(VideoFolder videoFolder);
    int updateHasSubfolder(VideoFolder videoFolder);
    VideoFolder getRootVideoFolder();
    int clearDefaultFolder();
    int setDefaultFolder(@Param("id")Integer id);
    int updateDeleteStatus(VideoFolder videoFolder);
    int getSubfolderCount(@Param("id")Integer id);
    VideoFolder getDefaultVideoFolder();
}
